package com.me.mvc.model.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by roman on 22.03.15.
 */
@XmlRootElement(namespace = "namespace")
public class Client {

    public Client(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public Client() {
    }

    private int id;

    private String name;

    @XmlElement(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @XmlElement(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Client{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
